//
//  UIColor+Extension.swift
//  WeiBoSwift
//
//  Created by rong on 15/7/5.
//  Copyright © 2015年 rong. All rights reserved.
//

import UIKit

extension UIColor {
    
    class func randomColor() -> UIColor {
    
        return UIColor(red: randomColorValue(), green: randomColorValue(), blue: randomColorValue(), alpha: 1.0)
    }
    
    private class func randomColorValue() -> CGFloat {
        
        return CGFloat(arc4random_uniform(256)) / 255
    }
}
